import {Component} from '@angular/core';
import {TranslateService} from "@ngx-translate/core";

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent {

  constructor(
    protected translate: TranslateService,
  ) {
    translate.setDefaultLang('en')
    translate.use('en')
  }


  changeLanguage(locale: string) {
    this.translate.use(locale)
  }
}
